package com.hitqz.robot.api.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotNull;

/**
 * @author wengyx
 * @date 2024/8/7
 * 检测设备
 */
@TableName(value = "patrol_dev")
public class PatrolDev {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @NotNull(message = "是否是父节点不能为空")
    private Integer isParent;

    private Integer parentId;

    private String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getIsParent() {
        return isParent;
    }

    public void setIsParent(Integer isParent) {
        this.isParent = isParent;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "PatrolDev{" +
                "id=" + id +
                ", isParent=" + isParent +
                ", parentId=" + parentId +
                ", name='" + name + '\'' +
                '}';
    }
}
